home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
005
/
product.arc
/
MACRO58.MNU
< prev
next >
Wrap
Text File
|
1986-09-23
|
906b
|
25 lines
[NORTH ](Setq A 90);+
(Setq B (Getreal "Enter bearing degrees: "));\+
(If (= B nil) (Setq B 0));+
(Setq C (Getreal "Minutes: "));\+
(If (= C nil) (Setq C 0));+
(Setq D (Getreal "Seconds: "));\+
(If (= D nil) (Setq D 0));+
(Setq B (+ (/ D 3600) (/ C 60) B));
[SOUTH ](Setq A 270);+
(Setq B (Getreal "Enter bearing degrees: "));\+
(If (= B nil) (Setq B 0));+
(Setq C (Getreal "Minutes: "));\+
(If (= C nil) (Setq C 0));+
(Setq D (Getreal "Seconds: "));\+
(If (= D nil) (Setq D 0));+
(Setq B (+ (/ D 3600) (/ C 60) B));
[EAST ](If (= A 90) (Setq A (- A B)) (Setq A (+ A B)));+
(Setq B (Getreal "Distance: "));\+
(Setq P2 (Polar (Setq P1 (Getvar "Lastpoint")) (/ (* A Pi) 180) B));+
Line;!P1;!P2;;
[WEST ](If (= A 90) (Setq A (+ A B)) (Setq A (- A B)));+
(Setq B (Getreal "Distance: "));\+
(Setq P2 (Polar (Setq P1 (Getvar "Lastpoint")) (/ (* A Pi) 180) B));+
Line;!P1;!P2;;